package com.zz.ecommerce.searchManage.logsitics;

import com.zz.ecommerce.common.CommonDao;
import com.zz.ecommerce.common.GridRequest;
import com.zz.ecommerce.common.GridResult;
import com.zz.ecommerce.common.bean.qdc.db.TOrderHeadQdc;
import com.zz.ecommerce.searchManage.goods.preclassified.SComplex;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by admin on 2016/3/29.
 */
@Service
public class LogsiticsService {

    @Autowired
    private CommonDao commonDao;

    public GridResult queryHsCodeList(final GridRequest request, final SComplex sComplex) {
        int count = commonDao.count("busi_param.s_complex", sComplex);
        List<TOrderHeadQdc> orderHeadList = commonDao.page("busi_param.s_complex", sComplex,
                                                           request.getStart(), request.getEnd(),
                                                           "");

        return new GridResult(orderHeadList, request, count);
    }

    public GridResult queryLogsiticsStatus(final GridRequest request, final TWaybillHeadQdc tWaybillHeadQdc) {
        return new GridResult(null, request, 0);
    }
}
